<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json" %>
<json:object>
  <c:choose>
  <c:when test="${!empty heartc}">
  <json:property name="res" value="ok"/>
  <json:property name="heartcount" value="${heartc.heartTotal}"/>       
  </c:when>
  <c:otherwise>
  <json:property name="res" value="no"/>
  </c:otherwise>
   </c:choose>
</json:object>

